﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;

namespace ServiceLayer.Entity
{
    [DataContract]
    public class Req
    {
        string itemName;
        int quantity;


        public Req(string itemName, int quantity)
        {
            this.itemName = itemName;
            this.quantity = quantity;
        }

        //public static Req Make(string itemName, int quantity)
        //{
        //    Req r = new Req();
        //    r.itemName = itemName;
        //    r.quantity = quantity;
        //    return r;
        //}

        [DataMember]
        public string ItemName
        {
            get { return itemName; }
            set { itemName = value; }
        }

        [DataMember]
        public int Quantity
        {
            get { return quantity; }
            set { quantity = value; }
        }

    }
}